package org.ch02.job.test13;

import java.util.HashMap;
import java.util.Map;

/**
 * 作业：实现对 staffs 实现查询
 * 坑一：把 age 字段的值设置为 null
 * 坑二：把实体对象的 addTime 字段类型修改为 java.util.Date
 *
 * @author ZQX
 * @date 2025-03-20
 */
public class MainTest {
    public static void main(String[] args) {
        Map<String, Object> cond = new HashMap<>();
        cond.put("id", "1");
        cond.put("name", "张三");

        try {
            Staff staff = (Staff) DbUtil.select4Bean(Staff.class, cond);
            System.out.println(staff);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
